import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import * as path from 'path'

export default defineConfig({
    base: 'admin',
    plugins: [vue()],
    resolve: {
        alias: {
            '@': path.resolve(__dirname, './src'),
            '@pangtou/form': path.resolve(__dirname, '../packages/form/index.ts'),
            '@pangtou/table': path.resolve(__dirname, '../packages/table/index.ts'),
        },
    },
    build: {
        rollupOptions: {
            input: {
                main: path.resolve(__dirname, './index.html'),
            },
        },
    },
})
